export default {
    set(key, value) {
        sessionStorage.setItem(key, JSON.stringify(value));
    },
    get(key) {
        return JSON.parse(sessionStorage.getItem(key));
    },
    remove(key) {
        sessionStorage.removeItem(key) 
    },
    clear() {
        sessionStorage.clear()
    },
    isKey(key) {
        let b = sessionStorage.getItem(key);
        if (b) {
            return true;
        } else {
            return false;
        }
    }
}